import 'package:fluent_ui/fluent_ui.dart';

mixin PageMixin {
  Widget subtitle({required Widget content}) => Builder(
        builder: (ctx) => Padding(
          padding: const EdgeInsetsDirectional.only(top: 14.0, bottom: 2.0),
          child: DefaultTextStyle(
            style: FluentTheme.of(ctx).typography.subtitle!,
            child: content,
          ),
        ),
      );

  Widget description({required Widget content}) => Builder(
        builder: (ctx) => Padding(
          padding: const EdgeInsetsDirectional.only(top: 14.0, bottom: 2.0),
          child: DefaultTextStyle(
            style: FluentTheme.of(ctx).typography.subtitle!,
            child: content,
          ),
        ),
      );
}
